/********************************************************************************
 *      Copyright:  (C) 2025 LingYun<iot25@lingyun>
 *                  All rights reserved.
 *
 *       Filename:  pack_data.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(13/04/25)
 *         Author:  LingYun <iot25@lingyun>
 *      ChangeLog:  1, Release initial version on "13/04/25 13:43:12"
 *                 
 ********************************************************************************/
#ifndef __PACK_DATA_H__
#define __PACK_DATA_H__

typedef struct pack
{
	char 	dev_id[32];
	char 	dev_time[32];
	float	dev_temp;
} packet_t;

int pack_data(packet_t *pack, char *data, int bytes);
int unpack_data(char *data, packet_t *pack);

#endif

